<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>迭代器</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="splobjectstorage.valid.html">SplObjectStorage::valid</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.appenditerator.html">AppendIterator</a></div>
 <div class="up"><a href="book.spl.html">SPL</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="spl.iterators" class="part">

 <h1>迭代器</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_part"><li><a href="class.appenditerator.html">AppendIterator</a></li><li><a href="class.arrayiterator.html">ArrayIterator</a></li><li><a href="class.cachingiterator.html">CachingIterator</a></li><li><a href="class.callbackfilteriterator.html">CallbackFilterIterator</a></li><li><a href="class.directoryiterator.html">DirectoryIterator</a></li><li><a href="class.emptyiterator.html">EmptyIterator</a></li><li><a href="class.filesystemiterator.html">FilesystemIterator</a></li><li><a href="class.filteriterator.html">FilterIterator</a></li><li><a href="class.globiterator.html">GlobIterator</a></li><li><a href="class.infiniteiterator.html">InfiniteIterator</a></li><li><a href="class.iteratoriterator.html">IteratorIterator</a></li><li><a href="class.limititerator.html">LimitIterator</a></li><li><a href="class.multipleiterator.html">MultipleIterator</a></li><li><a href="class.norewinditerator.html">NoRewindIterator</a></li><li><a href="class.parentiterator.html">ParentIterator</a></li><li><a href="class.recursivearrayiterator.html">RecursiveArrayIterator</a></li><li><a href="class.recursivecachingiterator.html">RecursiveCachingIterator</a></li><li><a href="class.recursivecallbackfilteriterator.html">RecursiveCallbackFilterIterator</a></li><li><a href="class.recursivedirectoryiterator.html">RecursiveDirectoryIterator</a></li><li><a href="class.recursivefilteriterator.html">RecursiveFilterIterator</a></li><li><a href="class.recursiveiteratoriterator.html">RecursiveIteratorIterator</a></li><li><a href="class.recursiveregexiterator.html">RecursiveRegexIterator</a></li><li><a href="class.recursivetreeiterator.html">RecursiveTreeIterator</a></li><li><a href="class.regexiterator.html">RegexIterator</a></li></ul>


 <div class="partintro">
  <p class="para">SPL 提供一系列迭代器以遍历不同的对象。</p>

  <div class="section" id="spl.iterators.tree">
   <h2 class="title">SPL Iterators Class Tree</h2>
   <ul class="itemizedlist">
    
    <li class="listitem">
     <span class="simpara"><a href="class.arrayiterator.html" class="classname">ArrayIterator</a></span>
     <ul class="itemizedlist">
      <li class="listitem">
       <span class="simpara"><a href="class.recursivearrayiterator.html" class="classname">RecursiveArrayIterator</a></span>
      </li>
     </ul>
    </li>
    
    <li class="listitem">
     <span class="simpara"><a href="class.emptyiterator.html" class="classname">EmptyIterator</a></span>
    </li>
    
    <li class="listitem">
     <span class="simpara"><a href="class.iteratoriterator.html" class="classname">IteratorIterator</a></span>
     <ul class="itemizedlist">
      <li class="listitem">
       <span class="simpara"><a href="class.appenditerator.html" class="classname">AppendIterator</a></span>
      </li>
      <li class="listitem">
       <span class="simpara"><a href="class.cachingiterator.html" class="classname">CachingIterator</a></span>
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara"><a href="class.recursivecachingiterator.html" class="classname">RecursiveCachingIterator</a></span>
        </li>
       </ul>
      </li>
      <li class="listitem">
       <span class="simpara"><a href="class.filteriterator.html" class="classname">FilterIterator</a></span>
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara"><a href="class.callbackfilteriterator.html" class="classname">CallbackFilterIterator</a></span>
         <ul class="itemizedlist">
          <li class="listitem">
           <span class="simpara"><a href="class.recursivecallbackfilteriterator.html" class="classname">RecursiveCallbackFilterIterator</a></span>
          </li>
         </ul>
        </li>
        <li class="listitem">
         <span class="simpara"><a href="class.recursivefilteriterator.html" class="classname">RecursiveFilterIterator</a></span>
         <ul class="itemizedlist">
          <li class="listitem">
           <span class="simpara"><a href="class.parentiterator.html" class="classname">ParentIterator</a></span>
          </li>
         </ul>
        </li>
        <li class="listitem">
         <span class="simpara"><a href="class.regexiterator.html" class="classname">RegexIterator</a></span>
         <ul class="itemizedlist">
          <li class="listitem">
           <span class="simpara"><a href="class.recursiveregexiterator.html" class="classname">RecursiveRegexIterator</a></span>
          </li>
         </ul>
        </li>
       </ul>
      </li>
      <li class="listitem">
       <span class="simpara"><a href="class.infiniteiterator.html" class="classname">InfiniteIterator</a></span>
      </li>
      <li class="listitem">
       <span class="simpara"><a href="class.limititerator.html" class="classname">LimitIterator</a></span>
      </li>
      <li class="listitem">
       <span class="simpara"><a href="class.norewinditerator.html" class="classname">NoRewindIterator</a></span>
      </li>
     </ul>
    </li>
    
    <li class="listitem">
     <span class="simpara"><a href="class.multipleiterator.html" class="classname">MultipleIterator</a></span>
    </li>
    
    <li class="listitem">
     <span class="simpara"><a href="class.recursiveiteratoriterator.html" class="classname">RecursiveIteratorIterator</a></span>
     <ul class="itemizedlist">
      <li class="listitem">
       <span class="simpara"><a href="class.recursivetreeiterator.html" class="classname">RecursiveTreeIterator</a></span>
      </li>
     </ul>
    </li>
    
    <li class="listitem">
     <span class="simpara"><a href="class.directoryiterator.html" class="classname">DirectoryIterator</a> (extends <a href="class.splfileinfo.html" class="classname">SplFileInfo</a>)</span>
     <ul class="itemizedlist">
      <li class="listitem">
       <span class="simpara"><a href="class.filesystemiterator.html" class="classname">FilesystemIterator</a></span>
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara"><a href="class.globiterator.html" class="classname">GlobIterator</a></span>
        </li>
        <li class="listitem">
         <span class="simpara"><a href="class.recursivedirectoryiterator.html" class="classname">RecursiveDirectoryIterator</a></span>
        </li>
       </ul>
      </li>
     </ul>
    </li>
   </ul>
  </div>

 </div>



 








 





 



 


 



 






 


 



 






 






 









 








 






 






 





 



 






 






 


 



 






 


 



 






 


 



 






 






 






 






 







</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="splobjectstorage.valid.html">SplObjectStorage::valid</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.appenditerator.html">AppendIterator</a></div>
 <div class="up"><a href="book.spl.html">SPL</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
